﻿/*
 * Created by SharpDevelop.
 * User: hugo
 * Date: 2012/9/7
 * Time: 下午 09:33
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using MyPetShop.Domain;
using FluentNHibernate.Mapping;

namespace MyPetShop.Domain.Mapping
{
	/// <summary>
	/// Description of CategoryMap.
	/// </summary>
	public class CategoryMap : ClassMap<Category>
	{
		public CategoryMap()
        {
            Table("Category");
            Id(x => x.CateoryId).Column("CategoryId")
                .GeneratedBy.Identity();
            Map(x => x.Name);
            Map(x => x.IsDelete).Default("false");
        }
	}
}
